package org.balabala.video.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.balabala.video.entity.VideoEntity;

import java.util.List;


@Mapper
public interface VideoDao extends BaseMapper<VideoEntity> {
	VideoEntity getByVideoId(long videoId);

	List<VideoEntity> getByVideoIds(Long[] videIds);

	void offShelfByVideoId(Long[] videoIds);

	List<VideoEntity> getTopPlayedVideo(Integer num);

	void updatePlayNum(Long videoId, Integer playNum);

	List<VideoEntity> getVideoByUid(Long uid,Integer page,Integer limit);
}
